package com.learn.jodd.vtor.model;

import jodd.vtor.constraint.NotBlank;
import jodd.vtor.constraint.NotNull;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;

/**
 * @author XuYang
 * @since 2025/6/10 16:23
 */
@Data
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@AllArgsConstructor(staticName = "of")
public class VtorEntity {

    @NotNull(message = "不能为空")
    Long id;
    @NotBlank(message = "不能为空")
    @NotNull
    String name;
}
